package com.xh.bussiness.practice.dao;

import com.xh.bussiness.practice.bean.dto.PracticeDto;
import com.xh.bussiness.practice.bean.request.PracticeRequest;
import com.xh.bussiness.practice.model.Practice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xh.bussiness.practice.model.PracticeStudentResult;
import com.xh.bussiness.tiku.bean.dto.QuestionDto;
import com.xh.bussiness.tiku.model.Question;
import com.xh.core.bean.XhPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 作业表 Mapper 接口
 * </p>
 *
 * @author Pitt
 * @since 2021-01-26
 */
public interface PracticeMapper extends BaseMapper<Practice> {

    void deleteById(@Param("id") String id);

    List<PracticeDto> queryPracticeSubmitRate(@Param("xhpage")XhPage xhPage, @Param("request") PracticeRequest request);

    Double queryAccuracy(@Param("practiceId") String practiceId);

    int deletePracticeById(@Param("id") String id);

    List<QuestionDto> queryQuestionByPracticeId(@Param("practiceId") String practiceId);
}
